<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style>
        
    </style>
</head>
<body>
    
</body>
<script>
    
    


    let name = "admin";
    let age = 18;
    let sex = "男";

    const obj = {
        name,
        age,
        sex,
        show(){
            console.log(this);
        },
        init:()=>{
            console.log(this);
        },
        msg:"hello",
    }

    console.log(obj);
    obj.show();
    obj.init();


</script>
</html>